<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="html" uri="http://struts.apache.org/tags-html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="logic" uri="http://struts.apache.org/tags-logic"%>

<bean:define id="role" value="${auth.role.roleType}" scope="session" />
<logic:equal name="role" value="dispatcher">
	<html:form action="/chooseEmployeeFlightCrewAction">
		<html:hidden property="flightCrewId" value="${flightCrewId}" />
		<h1>
			<bean:message key="crew.title.chooseEmployee" />
		</h1>
		<b><bean:message key="employee.chooseSpeciality" /></b>
		<html:select property="specialityId" title="Available speciality">
			<html:option value="-1">
				<bean:message key="employee.noSpecialitySelected" />
			</html:option>
			<html:options collection="specialities" property="specialityId"
				labelProperty="specialityName" />
		</html:select>
		<html:submit>
			<bean:message key="choose" />
		</html:submit>

	</html:form>
</logic:equal>